package com.retailshop.shopuser.service.impl;

import com.retailshop.shopuser.entity.UserMessages;
import com.retailshop.shopuser.mapper.UserMessagesMapper;
import com.retailshop.shopuser.service.UserMessagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userMessagesService")
public class UserMessagesServiceImpl implements UserMessagesService {
    
    @Autowired
    UserMessagesMapper userMessagesMapper;
    
    @Override
    public int deleteByPrimaryKey(Integer userMessageId) {
        return userMessagesMapper.deleteByPrimaryKey(userMessageId);
    }

    @Override
    public int insert(UserMessages record) {
        return userMessagesMapper.insert(record);
    }

    @Override
    public int insertSelective(UserMessages record) {
        return userMessagesMapper.insertSelective(record);
    }

    @Override
    public UserMessages selectByPrimaryKey(Integer userMessageId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(UserMessages record) {
        return userMessagesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(UserMessages record) {
        return userMessagesMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(UserMessages record) {
        return userMessagesMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<UserMessages> getMessages(int userNoId) {
        return userMessagesMapper.getMessages( userNoId);
    }
}
